import request from '@/utils/request'
export function getGoodsLabelGroupList () {
    return request({
        url: 'store.goodsLabelGroup/select',
        method: 'GET'
    })
}

export function createGoodsLabelGroup (data:any) {
    return request({
        url: 'store.goodsLabelGroup/create',
        method: 'POST',
        data
    })
}
export function updateGoodsLabelGroup (data:any) {
    return request({
        url: `store.goodsLabelGroup/update`,
        method: 'PUT',
        data
    })
}
export function updateStatusGoodsLabelGroup (data:{id:number|string,status:number|string}) {
    return request({
        url: `store.goodsLabelGroup/status`,
        method: 'PUT',
        data
    })
}

export function delGoodsLabelGroup (data:{id:number|string}) {
    return request({
        url: `store.goodsLabelGroup/delete`,
        method: 'DELETE',
        data
    })
}




export function getGoodsLabelList (params:any) {
    return request({
        url: 'store.goodsLabel/list',
        method: 'GET',
        params
    })
}
export function getGoodsLabelSelect() {
    return request({
        url: 'store.goodsLabel/select',
        method: 'GET'
    })
}

export function getGoodsLabelDetail (params:any) {
    return request({
        url: 'store.goodsLabel/detail',
        method: 'GET',
        params
    })
}

export function createGoodsLabel (data:any) {
    return request({
        url: 'store.goodsLabel/create',
        method: 'POST',
        data
    })
}
export function updateGoodsLabel (data:any) {
    return request({
        url: `store.goodsLabel/update`,
        method: 'PUT',
        data
    })
}
export function updateStatusGoodsLabel (data:{id:number|string,status:number|string}) {
    return request({
        url: `store.goodsLabel/status`,
        method: 'PUT',
        data
    })
}

export function delGoodsLabel (data:{id:number|string}) {
    return request({
        url: `store.goodsLabel/delete`,
        method: 'DELETE',
        data
    })
}